//////////////////////////////////////////////////////////////////////////////////
//	Copyright 2011 by Yosef Grabivker, ryuho@homenetworksoft.com
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.
//

#ifndef _WIRELESS_PROG_HW_YG_H__
#define _WIRELESS_PROG_HW_YG_H__

#include "wirelesshw.h"

class CWirelessProgHW: public CWirelessHW
{
public:
								CWirelessProgHW(CLinkGuard& link, const wxString& strWirelessCMDName, const wxString& strWirelessInterface);
	virtual						~CWirelessProgHW(void);

	virtual std::string			GetStats(std::string& strRawData);
	virtual std::string			GetCaps();
	virtual void				SetUp(const std::string& strModemSettings);
	virtual bool				ExecuteXML(const std::string& strModemSettings);

private:
	wxString					BuildWirelessCMD() const;
	void						ParseMACList( class CMarkupSTL& doc, const char* szTAG, const RTSTRING& strData, int nNoise) const;
	void						ParseStatus(class CMarkupSTL& doc, const char* szTAG, const RTSTRING& strData) const;
	void						ExtractWirelessInt(const RTSTRING& strData);


private:
	wxString					m_strWirelessInterface;
	wxString					m_strWirelessCMDName;
};

#endif //_WIRELESS_PROG_HW_YG_H__